import React, { useEffect } from 'react';
import moment from "moment"

import "./index.less"
const Times = () => {
  const week = ["日", "一", "二", "三", "四", "五", "六"]
  return (
    <div className="times">
      {
        '星期' + week[new Date().getDay()] + moment().format(' YYYY/MM/DD/ h:mm:ss ') // 五月 2日 2021, 3:04:03 下午
      }
    </div>
  );
};

export default Times;